"
I am the last layout scope in a scope chain.
"
Class {
	#name : 'LayoutEmptyScope',
	#superclass : 'AbstractLayoutScope',
	#classInstVars : [
		'instance'
	],
	#category : 'Kernel-CodeModel-Layout',
	#package : 'Kernel-CodeModel',
	#tag : 'Layout'
}

{ #category : 'accessing' }
LayoutEmptyScope class >> instance [
	^ instance ifNil: [ instance := self new ]
]

{ #category : 'enumerating' }
LayoutEmptyScope >> allSlotsDo: aBlock [
]

{ #category : 'accessing' }
LayoutEmptyScope >> allVisibleSlots [
	^ OrderedCollection new
]

{ #category : 'accessing' }
LayoutEmptyScope >> fieldSize [
	^ 0
]

{ #category : 'flattening' }
LayoutEmptyScope >> flattenIn: aCollection [
	"Nothing to add"

	^ aCollection
]

{ #category : 'testing' }
LayoutEmptyScope >> hasFields [
	^ false
]

{ #category : 'testing' }
LayoutEmptyScope >> hasSlots [
	^ false
]

{ #category : 'testing' }
LayoutEmptyScope >> isEmpty [
	^ true
]

{ #category : 'accessing' }
LayoutEmptyScope >> ownFieldSize [
	^ 0
]

{ #category : 'accessing' }
LayoutEmptyScope >> visibleSlots [
	^ #()
]
